﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Alos.Entity;
using Alos.Common;
using Alos.IRepository;
using Alos.IService;
using PetaPoco;

namespace Alos.Service
{
    public class ReResourceEvaluateRecordService : BaseService<ReResourceEvaluateRecord>, IReResourceEvaluateRecordService
    {
        IReResourceEvaluateRecordRepository ReResourceEvaluateRecordRepository;
        public ReResourceEvaluateRecordService(IReResourceEvaluateRecordRepository _ReResourceEvaluateRecordRepository)
        {
            ReResourceEvaluateRecordRepository = _ReResourceEvaluateRecordRepository; 
        }
        /// <summary>
        /// 资源评价表（）
        /// </summary>
        /// <param name="id"></param>
        /// <param name="evaluateContent">评价类型  0点赞，1不懂</param>
        /// <returns></returns>
        public bool CreateReResourceEvaluateRecord(List<ReResourceEvaluateRecord> ReResourceEvaluateRecords)
        {
            return ReResourceEvaluateRecordRepository.CreateReResourceEvaluateRecord(ReResourceEvaluateRecords);
        }
    }
}
